<template>
  <div id="app">
          <router-view></router-view>
<!--    <el-button class="el-button el-button&#45;&#45;primary" @click="showSession">Button</el-button>-->
  </div>
</template>

<script>
import {ElMessage} from "element-plus";

export default {
  name: 'App',
  methods:{
    showSession() {
      // ElMessage.success({
      //   message: sessionStorage.getItem("userInfo").username,
      //   type: 'success'
      // })

      ElMessage.success({
        message: this.$store.getters.getUser,
        type: 'success'
      })
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
